package de.szut.tictactoe.gui;

import java.awt.Font;

import javax.swing.JLabel;
import javax.swing.SwingConstants;

@SuppressWarnings("serial")
public class GamePanel extends DefaultPanel {

	/**
	 * Create the panel.
	 */
	public GamePanel() {
		/**
		 * Titleshit
		 */
		JLabel lblTicTacToe = new JLabel("Tic Tac Toe");
		lblTicTacToe.setFont(new Font("ITC Bookman", Font.PLAIN, 16));
		lblTicTacToe.setHorizontalAlignment(SwingConstants.CENTER);
		lblTicTacToe.setBounds(10, 11, 424, 14);
		add(lblTicTacToe);
		
		/**
		 * Fieldshit
		 */
		
		TicTacToeFieldGenerator generator = new TicTacToeFieldGenerator(this);
		generator.generateTicTacToeField();
		setVisible(true);
	}
}
